/*
 * acooly.cn Inc.
 * Copyright (c) 2017 All Rights Reserved.
 * create by ouwen
 * date:2017-09-21
 */
package com.yiji.fintech.musfinance.service.impl;

import com.acooly.core.common.service.EntityServiceImpl;
import com.yiji.fintech.musfinance.dao.AreaCodeDao;
import com.yiji.fintech.musfinance.entity.AreaCode;
import com.yiji.fintech.musfinance.service.AreaCodeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * center_area_code Service实现
 *
 * Date: 2017-09-21 14:12:28
 *
 * @author ouwen
 *
 */
@Service("areaCodeService")
public class AreaCodeServiceImpl extends EntityServiceImpl<AreaCode, AreaCodeDao> implements AreaCodeService {
    @Autowired
    private JdbcTemplate jdbcTemplate;
    @Override
    public List<Map<String,Object>> getAllArea(){
        return jdbcTemplate.queryForList("select PROVINCE,CITY from center_area_code");
    }
}
